# -*- coding: utf-8 -*-
# -------------------------------
# @PyCharm：PyCharm 2023.1.3 (Community Edition)
# @Python：Python 3.8.10
# @时间：2024/11/2 14:32
# -------------------------------

# 数据库名称
DATABASE = 'fastapi_data_collection'
# 主机地址
IP = '127.0.0.1'
# 数据库进程运行端口
PORT = 3306
# 数据库用户名称
USER = 'root'
# 数据库用户密码
PASSWORD = '211211'


# 警报数据筛选标准
"""
燃烧带温度小于2023.4200并大于1752.5773则为正常，不会被筛选出来
燃烧带温度小于2044.2800并大于2023.4200则为轻微出错，会被筛选出来
燃烧带温度小于2065.1400并大于2044.2800则为中等出错，会被筛选出来
燃烧带温度大于2065.1400则为严重出错，会被筛选出来
燃烧带温度小于1752.5773并大于1734.6939则为轻微出错，会被筛选出来
燃烧带温度小于1734.6939并大于1717.1717则为中等出错，会被筛选出来
燃烧带温度小于1717.1717则为严重出错，会被筛选出来
其他值以此类推
"""
filter_standard = {
    "ranshaodaiwen":{
        "max":[2023.4200, 2044.2800, 2065.1400],
        "min":[1752.5773, 1734.6939, 1717.1717]
    },
    "rongrongdaiwen":{
        "max":[1940.0000, 1960.0000, 1980.0000],
        "min":[1391.7526, 1377.5510, 1363.6364]
    },
    "shangbuwen":{
        "max":[291.0000, 294.0000,297.0000],
        "min":[206.1856, 204.0816, 202.0202]
    },
    "xiabuwen":{
        "max":[1309.5000, 1323.0000, 1336.5000],
        "min":[309.2784, 306.1224, 303.0303]
    },
    "lengfengya":{
        "max":[0.7760, 0.7840, 0.7920],
        "min":[0.4124, 0.4082, 0.4040]
    },
    "refengya":{
        "max":[0.3880, 0.3920, 0.3960],
        "min":[0.0120, 0.0080, 0.0040]
    },
    "ludingya":{
        "max":[0.7663, 0.7742, 0.7821],
        "min":[0.0370, 0.0158, 0.0079]
    }
}
